package me.sealer.ssm.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.util.Date;

/**
 * 用户
 *
 * @author sealer
 */
@Builder
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "用户信息")
public class User {
    @ApiModelProperty(value = "用户id")
    private Integer id;

    @ApiModelProperty("用户名")
    private String username;

    @JsonIgnore
    private String password;

    @ApiModelProperty("出生日期")
    private Date birthday;

    @ApiModelProperty("性别")
    private String sex;

    @ApiModelProperty("地址")
    private String address;

    @ApiModelProperty("手机号")
    private String phoneNumber;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("用户来源")
    private String origin;

    @JsonIgnore
    private String avatarUrl;
}
